<!DOCTYPE html>
<html>
<!-- Created by GNU Texinfo 7.1.1, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- This file documents the use of the GNU compilers.

Copyright © 1988-2023 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being "Funding Free Software", the Front-Cover
Texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below).  A copy of the license is included in the section entitled
"GNU Free Documentation License".

(a) The FSF's Front-Cover Text is:

A GNU Manual

(b) The FSF's Back-Cover Text is:

You have freedom to copy and modify this GNU Manual, like GNU
     software.  Copies published by the Free Software Foundation raise
     funds for GNU development. -->
<title>Directly-mapped Integer Functions (Using the GNU Compiler Collection (GCC))</title>

<meta name="description" content="Directly-mapped Integer Functions (Using the GNU Compiler Collection (GCC))">
<meta name="keywords" content="Directly-mapped Integer Functions (Using the GNU Compiler Collection (GCC))">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta name="viewport" content="width=device-width,initial-scale=1">

<link href="index.html" rel="start" title="Top">
<link href="Indices.html" rel="index" title="Indices">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="FR_002dV-Built_002din-Functions.html" rel="up" title="FR-V Built-in Functions">
<link href="Directly_002dmapped-Media-Functions.html" rel="next" title="Directly-mapped Media Functions">
<link href="Argument-Types.html" rel="prev" title="Argument Types">
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
kbd.key {font-style: normal}
span:hover a.copiable-link {visibility: visible}
-->
</style>


</head>

<body lang="en_US">
<div class="subsubsection-level-extent" id="Directly_002dmapped-Integer-Functions">
<div class="nav-panel">
<p>
Next: <a href="Directly_002dmapped-Media-Functions.html" accesskey="n" rel="next">Directly-Mapped Media Functions</a>, Previous: <a href="Argument-Types.html" accesskey="p" rel="prev">Argument Types</a>, Up: <a href="FR_002dV-Built_002din-Functions.html" accesskey="u" rel="up">FR-V Built-in Functions</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Indices.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<h4 class="subsubsection" id="Directly_002dMapped-Integer-Functions"><span>6.60.13.2 Directly-Mapped Integer Functions<a class="copiable-link" href="#Directly_002dMapped-Integer-Functions"> &para;</a></span></h4>

<p>The functions listed below map directly to FR-V I-type instructions.
</p>
<table class="multitable">
<thead><tr><th width="45%">Function prototype</th><th width="32%">Example usage</th><th width="23%">Assembly output</th></tr></thead>
<tbody><tr><td width="45%"><code class="code">sw1 __ADDSS (sw1, sw1)</code></td><td width="32%"><code class="code"><var class="var">c</var> = __ADDSS (<var class="var">a</var>, <var class="var">b</var>)</code></td><td width="23%"><code class="code">ADDSS <var class="var">a</var>,<var class="var">b</var>,<var class="var">c</var></code></td></tr>
<tr><td width="45%"><code class="code">sw1 __SCAN (sw1, sw1)</code></td><td width="32%"><code class="code"><var class="var">c</var> = __SCAN (<var class="var">a</var>, <var class="var">b</var>)</code></td><td width="23%"><code class="code">SCAN <var class="var">a</var>,<var class="var">b</var>,<var class="var">c</var></code></td></tr>
<tr><td width="45%"><code class="code">sw1 __SCUTSS (sw1)</code></td><td width="32%"><code class="code"><var class="var">b</var> = __SCUTSS (<var class="var">a</var>)</code></td><td width="23%"><code class="code">SCUTSS <var class="var">a</var>,<var class="var">b</var></code></td></tr>
<tr><td width="45%"><code class="code">sw1 __SLASS (sw1, sw1)</code></td><td width="32%"><code class="code"><var class="var">c</var> = __SLASS (<var class="var">a</var>, <var class="var">b</var>)</code></td><td width="23%"><code class="code">SLASS <var class="var">a</var>,<var class="var">b</var>,<var class="var">c</var></code></td></tr>
<tr><td width="45%"><code class="code">void __SMASS (sw1, sw1)</code></td><td width="32%"><code class="code">__SMASS (<var class="var">a</var>, <var class="var">b</var>)</code></td><td width="23%"><code class="code">SMASS <var class="var">a</var>,<var class="var">b</var></code></td></tr>
<tr><td width="45%"><code class="code">void __SMSSS (sw1, sw1)</code></td><td width="32%"><code class="code">__SMSSS (<var class="var">a</var>, <var class="var">b</var>)</code></td><td width="23%"><code class="code">SMSSS <var class="var">a</var>,<var class="var">b</var></code></td></tr>
<tr><td width="45%"><code class="code">void __SMU (sw1, sw1)</code></td><td width="32%"><code class="code">__SMU (<var class="var">a</var>, <var class="var">b</var>)</code></td><td width="23%"><code class="code">SMU <var class="var">a</var>,<var class="var">b</var></code></td></tr>
<tr><td width="45%"><code class="code">sw2 __SMUL (sw1, sw1)</code></td><td width="32%"><code class="code"><var class="var">c</var> = __SMUL (<var class="var">a</var>, <var class="var">b</var>)</code></td><td width="23%"><code class="code">SMUL <var class="var">a</var>,<var class="var">b</var>,<var class="var">c</var></code></td></tr>
<tr><td width="45%"><code class="code">sw1 __SUBSS (sw1, sw1)</code></td><td width="32%"><code class="code"><var class="var">c</var> = __SUBSS (<var class="var">a</var>, <var class="var">b</var>)</code></td><td width="23%"><code class="code">SUBSS <var class="var">a</var>,<var class="var">b</var>,<var class="var">c</var></code></td></tr>
<tr><td width="45%"><code class="code">uw2 __UMUL (uw1, uw1)</code></td><td width="32%"><code class="code"><var class="var">c</var> = __UMUL (<var class="var">a</var>, <var class="var">b</var>)</code></td><td width="23%"><code class="code">UMUL <var class="var">a</var>,<var class="var">b</var>,<var class="var">c</var></code></td></tr>
</tbody>
</table>

</div>



</body>
</html>
